package com.ilancuo.staticfinal;

/**
 * Test the order of init.
 * @author ilancuo 4/12/2018
 *
 * result: 20 \n 10
 *
 */
public class Demo {
	
	public static Demo instance = new Demo(20);
	
	public static int i = 10;
	
	public static void main(String[] args) {
		Demo demo = new Demo(20);
	}
	
	public Demo(int j) {
		System.out.println(j - i);
	}
	
}